package com.ruoyi.employee.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 员工花名册对象 employee
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Alias("VueEmployee")
public class Employee extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工ID，主键 */
    private Long id;

    /** 员工头像URL地址 */
    private String avatar;

    /** 员工姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 员工工号，唯一 */
    @Excel(name = "工号")
    private String employeeNumber;

    /** 所属部门ID，关联部门表 */
    private Long departmentId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 职位ID，关联职位表 */
    private Long positionId;

    /** 员工类型，如：全职、兼职、实习等 */
    private String type;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idNumber;

    /** 邮箱 */
    private String email;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hireDate;

    /** 关联的员工证书ID，可为空 */
    private Long certificateId;

    /** 关联的合同ID，可为空 */
    private Long contractId;

    /** 性别：男/女/其他 */
    private String gender;

    /** 员工状态：试用/正式/离职/退休 */
    private String status;

    /** 参保方案ID，关联参保方案表 */
    private Long insurancePlanId;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 记录创建时间 */
    private Date createdAt;

    /** 记录最后更新时间 */
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setEmployeeNumber(String employeeNumber) 
    {
        this.employeeNumber = employeeNumber;
    }

    public String getEmployeeNumber() 
    {
        return employeeNumber;
    }

    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setPositionId(Long positionId) 
    {
        this.positionId = positionId;
    }

    public Long getPositionId() 
    {
        return positionId;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setIdNumber(String idNumber) 
    {
        this.idNumber = idNumber;
    }

    public String getIdNumber() 
    {
        return idNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setHireDate(Date hireDate)
    {
        this.hireDate = hireDate;
    }

    public Date getHireDate() 
    {
        return hireDate;
    }

    public void setCertificateId(Long certificateId) 
    {
        this.certificateId = certificateId;
    }

    public Long getCertificateId() 
    {
        return certificateId;
    }

    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setInsurancePlanId(Long insurancePlanId) 
    {
        this.insurancePlanId = insurancePlanId;
    }

    public Long getInsurancePlanId() 
    {
        return insurancePlanId;
    }

    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("avatar", getAvatar())
            .append("name", getName())
            .append("employeeNumber", getEmployeeNumber())
            .append("departmentId", getDepartmentId())
            .append("phone", getPhone())
            .append("positionId", getPositionId())
            .append("type", getType())
            .append("idNumber", getIdNumber())
            .append("hireDate", getHireDate())
            .append("certificateId", getCertificateId())
            .append("contractId", getContractId())
            .append("gender", getGender())
            .append("status", getStatus())
            .append("insurancePlanId", getInsurancePlanId())
            .append("delFlag", getDelFlag())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
